﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SQLBuilderWPF
{
    public class WhereExpression : SQLExpression
    {
        public WhereExpression()
        {
            this.Conditions = "";
        }

        public string Conditions { get; set; }

        public override string ToExpression()
        {
            if (String.IsNullOrEmpty(this.Conditions))
            {
                return "";
            }
            return "where " + this.Conditions;
        }
    }
}
